home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / graphics / gnuplot / contrib / clift / README < prev   
Encoding:
Internet Message Format  |  1992-11-08  |  1.6 KB

  1. From ames!elroy.jpl.nasa.gov!swrinde!cs.utexas.edu!torn!watserv2.uwaterloo.ca!watmath!neumann.uwaterloo.ca!ssclift Mon Nov  9 10:23:51 PST 1992
  2. Article: 336 of comp.graphics.gnuplot
  3. Newsgroups: comp.graphics.gnuplot
  4. Path: ames!elroy.jpl.nasa.gov!swrinde!cs.utexas.edu!torn!watserv2.uwaterloo.ca!watmath!neumann.uwaterloo.ca!ssclift
  5. From: ssclift@neumann.uwaterloo.ca (Simon Clift)
  6. Subject: Re: Running Gnuplot from FORTRAN, (and C)
  7. Message-ID: <BxGEIJ.MGF@math.uwaterloo.ca>
  8. Summary: Use popen.
  9. Sender: news@math.uwaterloo.ca (News Owner)
  10. Organization: University of Waterloo
  11. Date: Mon, 9 Nov 1992 14:49:31 GMT
  12. Lines: 262
  13.  
  14. I've noticed a few people trying to run Gnuplot from a program.  I looked
  15. at this problem a few weeks ago, when I wanted plotted output to display
  16. intermediate stage solutions from a fluid dynamics code.  After consulting
  17. with local gurus, they pointed me to the Unix popen commands.  I wrote this
  18. simple set of wrapper functions, meant to be linked to Sun 4/670 Fortran,
  19. and called as SUBROUTINE's.  These will probably work with other Unix boxes.
  20.  
  21. I compiled the source with
  22.   gcc -c pipeLib.c
  23. which creates pipeLib.o.  Then I just link this with my Fortran program
  24.   f77 -O2 myFortranSource.o pipeLib.o -o myProgramExecutable
  25.  
  26. What the library does is set up to 20 programs going (like gnuplot), then
  27. allows you to send to them as if the program were typing on the command
  28. line.  I've included a brief set of docs after the source code, in latex
  29. format.  There is no facility to watch the output of a program.
  30.  
  31. Help yourself...
  32.  
  33. ----------------------------Source Code, Cut here--------------------------
  34.